package com.lxyk.service.impl;

import com.lxyk.mapper.StorageMapper;
import com.lxyk.service.StorageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName StorageServiceImpl
 * @Description TODO
 * @Author FJQ
 * @Date 2022/11/30 16:28
 * @Version 1.0
 **/

@Service
public class StorageServiceImpl implements StorageService {

    @Resource
    private StorageMapper storageMapper;
    @Override
    public void decrease(Long productId, Integer count) {
        storageMapper.decrease(productId,count);
    }
}
